<!--
  描述：基础配置-单位配置表table页
  @author xujie
  @since 2021-03-01 09:35:57
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <!--规定复选框列置于第1列，居中显示-->
        <th lay-data="{field:'unitId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'sort', unresize:true, edit: 'text', align:'center'}">排序</th>
        <th lay-data="{field:'unitId', unresize:true, align:'center'}">id</th>
        <th lay-data="{field:'unitName', unresize:true, align:'center'}">单位名称</th>
        <th lay-data="{field:'updateTime', unresize:true, align:'center'}">最后修改时间/人</th>
        <th lay-data="{field:'操作', width:140, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}">sort</td>
        <td th:text="${item.unitId}">unitId</td>
        <td th:text="${item.unitName}">unitName</td>
        <td th:text="${item.updater + '&nbsp;/&nbsp;' +  #dates.format(item.updateTime, 'yyyy-MM-dd HH:mm:ss')}">updateTime</td>
        <td>
            <div>
                <div th:if="${#authPermit.checkPermit('/unit/addEditView.action')}">
                    <button class="layui-btn layui-btn-sm" lay-event="update">修改</button>
                </div>
            </div>
        </td>
    </tr>
    </tbody>
</table>
